import request from '@/utils/request'

export function getColumnList(query) {
  return request({
    url: '/popularize/column/getList',
    method: 'post',
    data: query
  })
}

export function getColumnUsableList(query) {
  return request({
    url: '/popularize/column/getAvailable',
    method: 'post',
    data: query
  })
}
export function getColumnDetail(id) {
  return request({
    url: '/popularize/column/getDetail',
    method: 'post',
    data: id
  })
}

export function saveColumn(id) {
  return request({
    url: '/popularize/column/save',
    method: 'post',
    data: id
  })
}

export function removeColumnByID(id) {
  return request({
    url: '/popularize/column/remove',
    method: 'post',
    data: id
  })
}

export function changeColumnStatusByID(id) {
  return request({
    url: '/popularize/column/change-status',
    method: 'post',
    data: id
  })
}

export function getColumnAvabile() {
  return request({
    url: '/popularize/column/getAvailable',
    method: 'post'
  })
}

